//
//  CXSelectSaveTableViewCell.m
//  ProjectOfBStage
//
//  Created by cuixin on 15/11/18.
//  Copyright © 2015年 cuixin. All rights reserved.
//

#import "CXSelectSaveTableViewCell.h"

@implementation CXSelectSaveTableViewCell
-(void)dealloc{
    [_imgView release];
    [_titleLabel release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.imgView = [[UIImageView alloc] init];
        self.titleLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.imgView];
        [self.contentView addSubview:self.titleLabel];
        self.titleLabel.font = [UIFont systemFontOfSize:HEIGHT_PRO(13)];
        self.titleLabel.numberOfLines = 3;
        
        [_imgView release];
        [_titleLabel release];
    }
    return self;
}

-(void)layoutSubviews{
    [super layoutSubviews];
    self.imgView.frame = CGRectMake(WIDTH_PRO(10), HEIGHT_PRO(10), WIDTH_PRO(150), HEIGHT_PRO(100));
    self.titleLabel.frame = CGRectMake(self.imgView.frame.size.width + self.imgView.frame.origin.x + WIDTH_PRO(5), self.imgView.frame.origin.y + HEIGHT_PRO(5), self.frame.size.width - self.imgView.frame.size.width - self.imgView.frame.origin.x - HEIGHT_PRO(40), HEIGHT_PRO(60));
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
